package com.ldodds.deville.calais;

/**
 * Exception thrown when errors are receiving from the OpenCalais 
 * service.
 * 
 * @author Leigh Dodds
 */
public class CalaisException extends Exception
{
	private int statusCode;
	private String response;
	
	public CalaisException(int statusCode, String message, String response) {
		super(message);
		this.statusCode = statusCode;
		this.response = response;
	}

	public int getStatusCode() {
		return statusCode;
	}
	
	public String getResponse() {
		return response;
	}
}
